﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="AddEmployee.ascx.vb"
    Inherits="WebForm_ManageEmployee_AddEmployee" %>
<%@ Register Src="~/WebForm/SearchControl/SearchOrganizationControl.ascx" TagName="SearchOrganizationControl" TagPrefix="My" %>    
<%--<asp:Panel ID="panel1" runat="server" BackColor="white" BorderWidth="1" SkinID="DragPanel"
    Width="400">
    <br />
    <div align="center">
        <asp:Label ID="lblForm" runat="server" meta:resourcekey="Page" SkinID="title" ForeColor="#408080"></asp:Label>
    </div>
    <br />--%>
<My:MyFormView ID="fv" runat="server" DefaultMode="ReadOnly">
    <ItemTemplate>
        <table>
            <tr>
                <td align="right">
                    <asp:Label ID="lblEmployeeID" runat="server" meta:resourcekey="lblEmployeeID"></asp:Label>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtEmployeeID" runat="server" Text='<%# Bind("EmployeeID") %>' MaxLength="50"></asp:TextBox>
                      <asp:RequiredFieldValidator Display="None" SetFocusOnError="true" ValidationGroup="vInsert" meta:resourcekey="rfvEmployeeID" ID="rfvEmployeeID" ControlToValidate="txtEmployeeID" runat="server"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="lblEmployeeName" runat="server" meta:resourcekey="lblEmployeeName"></asp:Label>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtEmployeeName" runat="server" Text='<%# Bind("EmployeeName") %>' MaxLength="50"></asp:TextBox>
                </td>
            </tr>
          <%--  <tr>
                <td align="right">
                    <asp:Label ID="lblWindowsID" runat="server" meta:resourcekey="lblWindowsID"></asp:Label>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtWindowsID" runat="server" Text='<%# Bind("WindowsID") %>'></asp:TextBox>
                </td>
            </tr>--%>
                   <tr>
                <td align="right">
                    <asp:Label ID="lblEmail" runat="server" meta:resourcekey="lblEmail"></asp:Label>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtEmail" runat="server" Text='<%# Bind("Email") %>' MaxLength="100"></asp:TextBox>
                </td>
                    <td><asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ErrorMessage="RegularExpressionValidator" ControlToValidate="txtEmail" ValidationExpression="^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$">請輸入正確E-mail!</asp:RegularExpressionValidator></td></tr>
            
            <tr>
               <td>
                        <asp:Label ID="lblPhoneNumber" runat="server" Text="<%$ Resources:PhoneNumber %>"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtPhoneNumber" runat="server" MaxLength="50" Text='<%# Bind("PhoneNumber") %>'></asp:TextBox> 
                    </td>
            </tr>
                            <tr>
                    <td>
                        <asp:Label ID="lblFaxPhoneNumberr" runat="server" Text="<%$ Resources:FaxPhoneNumber %>"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtFaxPhoneNumber" runat="server" MaxLength="50" Text='<%# Bind("FaxPhoneNumber") %>'></asp:TextBox>
                 
                    </td>
                           </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="lblOrganizationName" runat="server" meta:resourcekey="lblOrganizationName"></asp:Label>
                </td>
                <td align="left">
<%--                    <asp:TextBox ID="txtOrganizationName" runat="server" Text='<%# Bind("OrganizationName") %>' Enabled="false"></asp:TextBox>
--%>
                    <asp:DropDownList ID="ddlOrganizationID" runat="server"></asp:DropDownList>                    
                    <asp:RequiredFieldValidator ID="rfvOrganizationID" runat="server" Display="None" ControlToValidate="ddlOrganizationID" meta:resourcekey="rfvOrganizationID" ValidationGroup="vInsert"></asp:RequiredFieldValidator>
                </td>
                <td>
                    <asp:Button ID="btnSelectOrganization" runat="server" meta:resourcekey="btnSelectOrganization" CommandName="btnSelectOrganization" Visible="false" />
                </td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="lblPassword" runat="server" meta:resourcekey="lblPassword"></asp:Label>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtPassword" runat="server" TextMode="Password" MaxLength="200"></asp:TextBox>
                </td>
            </tr>  
            <tr>
                <td align="right">
                    <asp:Label ID="lblPasswordConfirm" runat="server" meta:resourcekey="lblPasswordConfirm"></asp:Label>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtPasswordConfirm" runat="server" TextMode="Password" MaxLength="200"></asp:TextBox>
                    <asp:CompareValidator Display="None" SetFocusOnError="true" ValidationGroup="vInsert" meta:resourcekey="cvPassword" ID="cvPassword" runat="server" ControlToValidate="txtPassword" ControlToCompare="txtPasswordConfirm"></asp:CompareValidator>
                </td>
            </tr>                      
            <tr>
                <td align="right">
                    <asp:Label ID="lblActive" runat="server" meta:resourcekey="lblActive"></asp:Label>
                </td>
                <td align="left">
                    <asp:DropDownList ID="ddlActive" runat="server" Enabled="false">
                    </asp:DropDownList>
                </td>
            </tr>
        </table>
        <table>
            <tr>
                <td align="right">
                </td>
                <td align="left">
                    <asp:Button ID="btnAdd" runat="server" meta:resourcekey="btnAdd" CommandName="btnSave" ValidationGroup="vInsert" />
                    <ajaxToolkit:ConfirmButtonExtender ID="cbSave" runat="server" TargetControlID="btnAdd" meta:resourcekey="cbSave"></ajaxToolkit:ConfirmButtonExtender>
                    <asp:Button ID="btnOK" runat="server" Text="取消" CommandName="Canceled" />
                </td>
            </tr>
        </table>
        <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="True"
            ShowSummary="false" ValidationGroup="vInsert" />        
    
    </ItemTemplate>
</My:MyFormView>
<br />
<%--</asp:Panel>
<asp:Button ID="btnDummy" runat="server" Style="display: none" SkinID="null" />
<ajaxToolkit:ModalPopupExtender ID="mpSearch" runat="server" TargetControlID="btnDummy"
    PopupControlID="panel1" OkControlID="btnOK" PopupDragHandleControlID="panel1" />
--%>
<%--<My:SearchOrganizationControl ID="SearchOrganizationControl1" runat="server"></My:SearchOrganizationControl>
--%>